package com.sh.polymedicine.happysale.net.entity;

import java.util.List;

/**
 * Created by 675 on 16-5-25 15:00.
 * 类说明
 * Page类,包含video或hospital列表
 */
public class Page<T> extends BaseBean {
    /**
     * 总记录数(long)
     */
    private long totalCount;
    /**
     * 当前页码(long)
     */
    private long pageNo;
    /**
     * 下一页页码(long)
     */
    private long nextPage;
    /**
     * 上一页页码(long)
     */
    private long prePage;
    /**
     * 总页数(long)
     */
    private long totalPage;
    /**
     * 当前页是否是第一页(boolean)
     */
    private boolean firstPage;
    /**
     * 当前也是否是最后一夜(boolean)
     */
    private boolean lastPage;
    /**
     * 资讯统一访问地址 ———— 2.8资讯列表返回参数
     */
    private String url;
    /**
     * 视频或医院列表
     */
    private List<T> list;
    /**
     * 健康电视TV2.0中首页中推荐的视频分类个数
     * 当homeFlag为1 并且为t_type为TV调用时，返回参数中增加typeTotal总的类型数量
     * 当总的类型数量<5时，就得置灰，全部频道item
     */
    private int typeTotal;

    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public long getPageNo() {
        return pageNo;
    }

    public void setPageNo(long pageNo) {
        this.pageNo = pageNo;
    }

    public long getNextPage() {
        return nextPage;
    }

    public void setNextPage(long nextPage) {
        this.nextPage = nextPage;
    }

    public long getPrePage() {
        return prePage;
    }

    public void setPrePage(long prePage) {
        this.prePage = prePage;
    }

    public long getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(long totalPage) {
        this.totalPage = totalPage;
    }

    public boolean isFirstPage() {
        return firstPage;
    }

    public void setFirstPage(boolean firstPage) {
        this.firstPage = firstPage;
    }

    public boolean isLastPage() {
        return lastPage;
    }

    public void setLastPage(boolean lastPage) {
        this.lastPage = lastPage;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public int getTypeTotal() {
        return typeTotal;
    }

    public void setTypeTotal(int typeTotal) {
        this.typeTotal = typeTotal;
    }

    @Override
    public String toString() {
        return "Page{" +
                "totalCount=" + totalCount +
                ", pageNo=" + pageNo +
                ", nextPage=" + nextPage +
                ", prePage=" + prePage +
                ", totalPage=" + totalPage +
                ", firstPage=" + firstPage +
                ", lastPage=" + lastPage +
                ", url='" + url + '\'' +
                ", list=" + list +
                ", typeTotal=" + typeTotal +
                '}';
    }
}
